cmake_minimum_required( VERSION 2.8 )
project( ImageBasics )

set(CMAKE_CXX_FLAGS "-std=c++11")

# 寻找OpenCV库
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )

add_executable( imageBasics imageBasics.cpp )
target_link_libraries( imageBasics ${OpenCV_LIBS} )


add_executable( undistortImage undistortImage.cpp )
target_link_libraries( undistortImage ${OpenCV_LIBS} )